
function initTiny(){

	tinyMCE.init({
		// General options
		mode : "textareas",
		theme : "advanced",
    editor_selector : "mceEditor",
		plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

		// Theme options
		theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,forecolor,backcolor,|,cut,copy,paste,pastetext,pasteword",
    theme_advanced_buttons2 :"styleselect,formatselect,fontselect,fontsizeselect,|,media,advhr",
		theme_advanced_buttons3 : "replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,code,|,insertdate,inserttime",
		theme_advanced_buttons4 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,",
		theme_advanced_buttons5 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,|,charmap,emotions",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : false,
    width:"440",

		

		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		}
	});

}

function setContentWidth(){
  var l=document.getElementById("colOne").scrollHeight;
  var m=document.getElementById("colTwo").scrollHeight;
  var r=document.getElementById("colThree").scrollHeight;
  layoutHeight=Math.max(l,m,r);
  document.getElementById("colOne").style.height=layoutHeight+"px";
  document.getElementById("colTwo").style.height=layoutHeight+"px";
  document.getElementById("colThree").style.height=layoutHeight+"px";

}